import 'core-js/es/aggregate-error'; // 用于处理多个 Promise 错误
import 'core-js/stable/promise/all-settled'; // 用于处理 Promise.allSettled

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
//引入element-plus
// import ElementPlus from 'element-plus';
// import locale from 'element-plus/es/locale/lang/zh-cn'; // 引入中文语言包
// import 'element-plus/dist/index.css'; // 引入 Element Plus 样式
//引入ElMessage组件样式
import "element-plus/theme-chalk/el-message.css";
//引入全局样式
import './assets/main.css'

export const app = createApp(App)

// 引入Echarts
import VueEcharts from 'vue-echarts'
import 'echarts'
app.component('v-chart', VueEcharts)

// app.use(ElementPlus, { 
//     locale  // 语言包
// }); 
app.use(createPinia())
app.use(router)
app.mount('#app')
